<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://best.openssf.org/assets/css/style.css">
<link rel="stylesheet" href="checker.css">
<script src="checker.js"></script>
<script src="hello.js"></script>
<link rel="license" href="https://creativecommons.org/licenses/by/4.0/">

<!-- See create_labs.md for how to create your own lab! -->
</head>
<body>
<!-- For GitHub Pages formatting: -->
<div class="container-lg px-3 my-5 markdown-body">
<h1>Lab Exercise hello</h1>
<p>
This is a lab exercise on developing secure software.
For more information, see the <a href="introduction.html" target="_blank">introduction to
the labs</a>.

<p>
<h2>Goal</h2>
<p>
<b>Learn how to use our labs by writing a "Hello, world!" program.</b>

<p>
<h2>Background</h2>
<p>
A
<a href="https://en.wikipedia.org/wiki/%22Hello,_World!%22_program"
>"Hello, World!" program</a>
is often the first program written in
a new programming language or system.
We'll write one so we can see how these labs work.

<p>
<h2>Task Information</h2>
<p>

<p>
Your task is to change the program below
to print "Hello, world!" to learn how our labs work.
Please experiment with the buttons below labelled
<i>Hint</i>, <i>Reset</i>, and <i>Give up</i>.

<p>
When you get a correct answer, you'll see a popup notification, the
background color of the input box will change, and the
"Interactive Lab" heading will change to say <i>Complete!</i>.

<p>
<h2>Interactive Lab (<span id="grade"></span>)</h2>
<p>
<b>Please modify the code below to print "Hello, world!"
(not including the quotes)
for JavaScript on Node.js, while also learning how our labs work.</b>
<p>
<!--
You can use this an example for new labs.
For multi-line inputs, instead of <input id="attempt0" type="text" ...>, use
<textarea id="attempt" rows="2" cols="65">...</textarea>
-->
<form id="lab">
<pre><code
><input id="attempt0" type="text" size="60" spellcheck="false"
       value='console.log("Goodbye.");'>
</code></pre>
<button type="button" class="hintButton">Hint</button>
<button type="button" class="resetButton">Reset</button>
<button type="button" class="giveUpButton">Give up</button>
<br><br>
<p>
<i>This lab was developed by David A. Wheeler at
<a href="https://www.linuxfoundation.org/"
>The Linux Foundation</a>.</i>
<br><br>
<p id="correctStamp" class="small">
<textarea id="debugData" class="displayNone" rows="20" cols="65" readonly>
</textarea>
</form>

</div><!-- End GitHub pages formatting -->
</body>
</html>
